<script language="javascript">
function ValidateDate()
{
	if ( document.all['frmLogin'].username.value == '' )
	{
		alert('Chua nhap vao ten dang nhap !');
		document.all['frmLogin'].username.focus();
		return false;
	}
	
	if ( document.all['frmLogin'].password.value == '' )
	{
		alert('Chua nhap vao mat khau !');
		document.all['frmLogin'].username.focus();
		return false;
	}
	
	return true;
}
</script>
<br>
<br>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td align="center" valign="top">
<form action="4rum/login.php?sid={_U_SESSIONID}&yc=cms" method="post" name="frmLogin" onSubmit="return ValidateDate()">
<table width="400" border="0" cellspacing="0" cellpadding="0" style="border: 1px outset #000066" align="center">
    <tr>
            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  
            <td height="30" style="border: 1px outset;color:#FFFFFF;font-weight:bold" bgcolor="#336699">&nbsp;Đăng nhập hệ thống</td>
                </tr>
            </table></td>
    </tr>
          <tr>
            <td>
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td rowspan="2" align="center" valign="middle"><img src="images/security.gif" width="69" height="52"></td>
            <td>Tên đăng nhập</td>
            <td>&nbsp; 
              <input class="vsinput" name="username" type="text" size="30" maxlength="15">
            </td>
          </tr>
          <tr> 
            <td>Mật khẩu</td>
            <td>&nbsp; 
              <input class="vsinput" name="password" type="password" size="30" maxlength="15">
            </td>
          </tr>
          <tr> 
            <td colspan="2">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td height="40" bgcolor="#000066" style="border:1px inset" colspan="3" align="right"> 
              <input name="cmdSubmit" type="submit" value="&#272;&#259;ng nh&#7853;p &raquo;">
			  <input type="hidden" name="login" value="true" />
			  <input type="hidden" name="redirect" value="../index.php">
              &nbsp;</td>
          </tr>
        </table>
      </td>
          </tr>
        </table>
		</form>	
	</td>
  </tr>
</table>
<script language="javascript">document.all['username'].focus();</script>